package com.dfec.service.imp;

import java.sql.SQLException;
import java.util.List;

import com.dfec.dao.INewsDao;
import com.dfec.dao.ISeeDao;
import com.dfec.dao.imp.NewsDaoImp;
import com.dfec.dao.imp.SeeDaoImp;
import com.dfec.model.See;
import com.dfec.service.ISeeService;

public class SeeServiceImp implements ISeeService {
	ISeeDao pdao=new SeeDaoImp();
    INewsDao newsDao=new NewsDaoImp();
	@Override
	public int saveSeeTimes(String userPhone, String newsId) throws SQLException {
		// TODO Auto-generated method stub\
		//保存浏览记录
		return pdao.saveSeeTimes(userPhone, newsId);
	}

	@Override
	public List<See> getSeePopleListByNewsId(String news_id) throws SQLException {
		// TODO Auto-generated method stub
		return pdao.getSeePopleListByNewsId(news_id);
	}

	@Override
	public boolean isSee(String userPhone, String newsId) throws SQLException {
		// TODO Auto-generated method stub
		return pdao.isSee(userPhone, newsId);
	}

}
